package com.mall.service;

import com.mall.entity.Cart;
import com.mall.entity.CartItem;
import com.mall.entity.Product;
import com.mall.entity.User;

public interface CartService {

    Cart getCartByUser(User user);

    Cart createCart(User user);

    CartItem addItemToCart(User user, Product product, int quantity);

    void updateCartItem(Long cartItemId, int quantity);

    void removeCartItem(Long cartItemId);

    void clearCart(User user);
}    